<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
   <button id="btn">确定</button>
 </body>
 <script>
   var btn = document.getElementById("btn");
   btn.onclick = function(a){
    alert(a);
   }
    
   btn.addEventListener("click",function(a){
     alert(a);
   })
   btn.addEventListener("click",function(){
     alert("1");
   })
   btn.addEventListener("click",function(){
     alert("2");
   })
   btn.addEventListener("click",function(){
     alert("3");
   })
   btn.addEventListener("click",function(){
     alert("4");
   })
 </script>
</html>
